<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="Bookmark" href="/favicon.ico" >
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/lib/html5shiv.js"></script>
    <script type="text/javascript" src="/lib/respond.min.js"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="/h-ui/css/H-ui.css" />
    <link rel="stylesheet" type="text/css" href="/lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="/h-ui.admin/css/style.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
</head>
<body>
<div class="panel panel-default">
    <div class="panel-body">
        <div id="tab-system" class="HuiTab">
            <div class="tabBar cl">
                <span>报表设置</span>
            </div>
            <div class="tabCon">
                <form action="" method="post" class="form form-horizontal responsive" id="demoform">
                    <div class="row cl">
                        <span class="c-red">*</span>
                        <label class="form-label col-xs-3">报表服务器URL：</label>
                        <div class="formControls col-xs-8">
                            <input type="text" value="${report.host}" class="input-text" placeholder="例如:http://10.10.131.1" name="host" id="host">
                        </div>
                    </div>
                    <div class="row cl">
                        <span class="c-red">*</span>
                        <label class="form-label col-xs-3">报表服务器端口：</label>
                        <div class="formControls col-xs-8">
                            <input type="text" value="${report.port}" class="input-text" placeholder="例如:8082" name="port" id="port">
                        </div>
                    </div>

                    <div class="row cl">
                        <span class="c-red">*</span>
                        <label class="form-label col-xs-3">报表路径：</label>
                        <div class="formControls col-xs-8">
                            <input type="text" value="${report.path}"  class="input-text" placeholder="例如:WebReport/ReportServer" name="path" id="path">
                        </div>
                    </div>
                    <div class="row cl">
                        <span class="c-red">*</span>
                        <label class="form-label col-xs-3">第一个参数：</label>
                        <div class="formControls col-xs-8">
                            <input type="text" value="${report.firstParam}" class="input-text" placeholder="例如:reportlet" name="firstParam" id="firstParam">
                        </div>
                    </div>
                    <div class="row cl">
                        <div class="col-xs-8 col-xs-offset-3">
                            <input class="btn btn-primary" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
<script type="text/javascript" src="/h-ui/js/H-ui.js"></script>
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<script>
    //弹窗
    $(function(){
        //checkbox 美化
        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });
        $("#demoform").validate({
            rules:{
                url:{
                    required:true,
                    minlength:2,
                    maxlength:30
                },
                port:{
                    required:true,
                    digits:true
                },
                path:{
                    required:true,
                },
                firstParam:{
                    required:true,
                }

            },
            onkeyup:false,
            focusCleanup:true,
            success:"valid",
            submitHandler:function(form){
                $.ajax({
                    url : '/reportConfigInfo-ins-upd-del/',
                    async : false,
                    data :$(form).serialize(),
                    success : function(value){
                        if(value=="success"){
                            layer.msg('报表信息配置完成')
                        }
                    }
                });
            }
        });
        var _bodyHeight = $(window).height();
        $(".containBox").height(_bodyHeight);

        $("#tab-system").Huitab({
            index:0
        });
    });
</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>
